package tech.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.entity.Evaluate;
import tech.aistar.mapper.AgentMapper;
import tech.aistar.mapper.EvaluateMapper;
import tech.aistar.service.IEvaluateService;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: shuaiguo
 * @Date: 2020/10/01/17:42
 * @Description:
 */
@Service
public class EvaluateImpl implements IEvaluateService {
    @Autowired
    private EvaluateMapper evaluateMapper;
    @Override
    public List<Evaluate> selectAll() {
        return evaluateMapper.selectAll();
    }

    @Override
    public void insert(Evaluate evaluate) {
evaluateMapper.insert(evaluate);
    }

    @Override
    public void updateByPrimaryKey(Evaluate evaluate) {
evaluateMapper.updateByPrimaryKey(evaluate);
    }

    @Override
    public void deleteByPrimaryKey(Integer id) {
evaluateMapper.deleteByPrimaryKey(id);
    }

    @Override
    public Evaluate findById(Integer integer) {
        return  evaluateMapper.findById(integer);
    }

    @Override
    public Evaluate findByagentId(Integer integer) {
        return evaluateMapper.findByagentId(integer);
    }
}
